From 60270ec2c59b803804d67dd94ceea12b8857e4d7 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 25 Jun 2023 14:45:46 +0100 Subject: Add datasegments to WASM binary format --- ...mpiler.testing.snapshots.Snapshotter)].expected | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..13654007 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,22 @@ + +module.wasm: file format wasm 0x1 + +Section Details: + +Memory[1]: + - memory[0] pages: initial=10 +Data[2]: + - segment[0] <.data> memory=0 size=4 - init i32=0 + - 0000000: 0102 0304 .... + - segment[1] <.rodata> memory=0 size=4 - init i32=4 + - 0000004: 0405 0607 .... +Custom: + - name: "name" +Custom: + - name: "linking" + - segment info [count=2] + - 0: .data p2align=2 [ ] + - 1: .rodata p2align=0 [ ] + - symbol table [count=0] + +Code Disassembly: -- cgit v1.2.3